﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using System.ServiceModel.Activation;

namespace GetQuestionSetDataWebApplication
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IGetQuestionSetByAdminIdService" in both code and config file together.
   
    [ServiceContract]
 
    public interface IGetQuestionSetByAdminIdService
    {
        [OperationContract]
        [WebInvoke(Method = "GET",
                          ResponseFormat = WebMessageFormat.Json,
                          UriTemplate = "/adminId={adminId}/all")]
        string GetAllQuestionSetByAdmin(string adminId);
        [OperationContract]
        [WebInvoke(Method = "GET",
                          ResponseFormat = WebMessageFormat.Json,
                          UriTemplate = "/all")]
        string GetAllQuestionSet();

        [OperationContract]
        [WebInvoke(Method = "GET",
                          ResponseFormat = WebMessageFormat.Json,
                          UriTemplate = "/adminId={adminId}_questionSetName={questionSetId}")]
        string GetQuestionSet(string adminId, string questionSetId);
    }
}
